package com.enjoyor.soa.traffic.core.tsms.mapper.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.enjoyor.soa.traffic.core.tsms.constant.RltTaskTimeSqlId;
import com.enjoyor.soa.traffic.core.tsms.constant.TaskInfoSqlId;
import com.enjoyor.soa.traffic.core.tsms.domain.RltTaskTime;
import com.enjoyor.soa.traffic.core.tsms.mapper.IRltTaskTimeMapper;
import com.enjoyor.soa.traffic.frame.constant.BaseSqlId;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.exception.ManagerException;

@Service
@Transactional
public class RltTaskTimeMapper extends BaseMapper<RltTaskTime> implements IRltTaskTimeMapper {
	
	@Override
	public List<RltTaskTime> selectRltTaskTimeList(Map<String, Object> map){
		return sqlSessionTemplate.selectList(getSqlName(RltTaskTimeSqlId.SQL_SELECT_LIST), map);
	}
	
	@Override
	public int deleteByTaskId(String taskId) {
		return sqlSessionTemplate.delete(getSqlName(RltTaskTimeSqlId.SQL_DELETE_BY_TASKID), taskId);
	}
}